package com.example.captchademo.facedemo;

// 门面
public class LightFaceDemo {
    void lightOn() {
        HallLight hallLight=new HallLight();
        LivingRoomLight livingRoomLight=new LivingRoomLight();
        BedRoomLight bedRoomLight=new BedRoomLight();
        hallLight.on();
        livingRoomLight.on();
        bedRoomLight.on();
    }
    void lightOff() {
        HallLight hallLight=new HallLight();
        LivingRoomLight livingRoomLight=new LivingRoomLight();
        BedRoomLight bedRoomLight=new BedRoomLight();
        hallLight.off();
        livingRoomLight.off();
        bedRoomLight.off();
    }
}
